<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link media="screen" type="text/css" rel="stylesheet"
	href="/static/css/redmond/jquery-ui-1.7.1.custom.css">
<script type='text/javascript' src='/dwr/engine.js'></script>

<script
	src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.2/mootools-yui-compressed.js"></script>
<script
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script
	src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>


</head>
<body>
<style type="text/css">
#distributionAccordion h4 {
	height: 20px;
	padding-left: 30px;
}

#distributionAccordion {
	font-size: 16px;
}

#distributionAccordion input[type='text'] {
	width: 90%;
}
</style>

<script type='text/javascript'
	src='/dwr/interface/distributionService.js'></script>
<script type="text/javascript">
var distributionNPXReply = function(data) {
	$('distribution-normal-x').set('value', data);
}

var distributionNXPReply = function(data) {
	$('distribution-normal-p').set('value', data);
}

var distributionSNPXReply = function(data) {
	$('distribution-snormal-x').set('value', data);
}

var distributionSNXPReply = function(data) {
	$('distribution-snormal-p').set('value', data);
}

var distributionBXPReply = function(data) {
	$('distribution-b-p').set('value', data);
}

var distributionEXPReply = function(data) {
	$('distribution-e-p').set('value', data);
}

var distributionBPXReply = function(data) {
	$('distribution-b-x').set('value', data);
}

var distributionEPXReply = function(data) {
	$('distribution-e-x').set('value', data);
}


var distributionTXPReply = function(data) {
	$('distribution-t-p').set('value', data);
}

var distributionTPXReply = function(data) {
	$('distribution-t-x').set('value', data);
}

var distributionHXPReply = function(data) {
	$('distribution-h-p').set('value', data);
}

$j(function() {
	$j("#distributionAccordion").accordion({
		autoHeight: false
	});
});

</script>
<div id="distributionAccordion" style="width: 95%">
<h4>正态分布</h4>
<div><img alt="center"
	src="/gadgets/distribution/image/normalDistribution.png">
<p>μ: <input id="distribution-normal-m" type="text" value="0"
	title="μ" style="wdith: 80%"></p>
<p>σ: <input id="distribution-normal-d" type="text" value="1"
	title="σ" style="wdith: 80%"></p>
<p>x: <input id="distribution-normal-x" type="text" value="2"
	title="x" style="wdith: 80%"></p>
<p>p: <input id="distribution-normal-p" type="text" value="0.9772"
	title="p" style="wdith: 80%"></p>
<p><input type="button" value="x->p"
	onclick="distributionService.getNormalDistribution($('distribution-normal-d').value,$('distribution-normal-m').value,$('distribution-normal-x').value,distributionNXPReply);">
<input type="button" value="p->x"
	onclick="distributionService.getInverseNormalDistribution($('distribution-normal-d').value,$('distribution-normal-m').value,$('distribution-normal-p').value,distributionNPXReply);"></p>
</div>
<h4>标准正态分布</h4>
<div><img alt="center"
	src="/gadgets/distribution/image/normalDistribution.png">
<p>x: <input id="distribution-snormal-x" type="text" value="0"
	title="x" style="wdith: 80%"></p>
<p>p: <input id="distribution-snormal-p" type="text" value="0"
	title="p" style="wdith: 80%"></p>
<input type="button" value="x->p"
	onclick="distributionService.getStandardNormalDistribution($('distribution-snormal-x').value,distributionSNXPReply);">
<input type="button" value="p->x"
	onclick="distributionService.getInverseStandardNormalDistribution($('distribution-snormal-p').value,distributionSNPXReply);"></div>
<h4>二项分布</h4>
<div><img alt="center"
	src="/gadgets/distribution/image/CodeCogsEqn.png">
<p>σ:: <input id="distribution-b-pp" type="text" value="0" title="p"
	style="wdith: 80%"></p>
<p>trials:<input id="distribution-b-n" type="text" value="1"
	title="n" style="wdith: 80%"></p>
<p>x: <input id="distribution-b-x" type="text" value="0" title="x"
	style="wdith: 80%"></p>
<p>p: <input id="distribution-b-p" type="text" value="0" title="p"
	style="wdith: 80%"></p>
<p><input type="button" value="x->p"
	onclick="distributionService.getBinomialDistribution($('distribution-b-pp').value,$('distribution-b-n').value,$('distribution-b-x').value,distributionBXPReply);">
<input type="button" value="p->x"
	onclick="distributionService.getInverseBinomialDistribution($('distribution-b-pp').value,$('distribution-b-n').value,$('distribution-b-p').value,distributionBPXReply);">
</p>
</div>
<h4>指数分布</h4>
<div><img alt="center"
	src="/gadgets/distribution/image/exponentialDistribution.png">
<p>λ: <input id="distribution-e-sita" type="text" value="0"
	title="λ" style="wdith: 80%"></p>
<p>x:<input id="distribution-e-x" type="text" value="0" title="x"
	style="wdith: 80%"></p>
<p>p:<input id="distribution-e-p" type="text" value="0" title="p"
	style="wdith: 80%"></p>
<p><input type="button" value="x->p"
	onclick="distributionService.getExponentialDistribution($('distribution-e-sita').value,$('distribution-e-x').value,distributionEXPReply);">
<input type="button" value="x->p"
	onclick="distributionService.getInverseExponentialDistribution($('distribution-e-sita').value,$('distribution-e-p').value,distributionEXPReply);"></p>
</div>
<h4>t分布</h4>
<div><img alt="center" src="/gadgets/distribution/image/t.png">
<p>ν: <input id="distribution-t-ν" type="text" value="0" title="v"
	style="wdith: 80%"></p>
<p>x: <input id="distribution-t-x" type="text" value="0" title="x"
	style="wdith: 80%"></p>
<p>p: <input id="distribution-t-p" type="text" value="0" title="p"
	style="wdith: 80%"></p>
<p><input type="button" value="x->p"
	onclick="distributionService.getTDistribution($('distribution-t-v').value,$('distribution-t-x').value,distributionTXPReply);"><input
	type="button" value="p->x"
	onclick="distributionService.getInverseTDistribution($('distribution-t-v').value,$('distribution-t-p').value,distributionTPXReply);"></p>
</div>
<h4>超几何分布</h4>
<div><img alt="center" src="/gadgets/distribution/image/h.png">
<p>populationSize: <input id="distribution-h-pp" type="text"
	value="0" title="p"></p>
<p>numberOfSuccesses:<input id="distribution-h-n" type="text"
	value="0" title="p"></p>
<p>sampleSize:<input id="distribution-h-s" type="text" value="0"
	title="p" style="wdith: 80%"></p>
<p>x:<input id="distribution-h-x" type="text" value="0" title="x"
	style="wdith: 80%"></p>
<p>p:<input id="distribution-h-p" type="text" value="0" title="p"
	style="wdith: 80%"></p>
<p><input type="button" value="x->p"
	onclick="distributionService.getHypergeometricDistribution($('distribution-h-pp').value,$('distribution-h-n').value,$('distribution-h-s').value,distributionHXPReply);"></p>
</div>
<h4>Beta分布</h4>
<div>
<p>alpha: <input id="distribution-beta-a" type="text" value="0"></p>
<p>beta:<input id="distribution-beta-b" type="text" value="0"></p>
<p>x:<input id="distribution-beta-x" type="text" value="0" title="x"
	style="wdith: 80%"></p>
<p>p:<input id="distribution-beta-p" type="text" value="0" title="p"
	style="wdith: 80%"></p>
<p><input type="button" value="x->p"
	onclick="distributionService.getBetaDistribution($('distribution-beta-a').value,$('distribution-beta-b').value,$('distribution-beta-x').value,distributionBetaXPReply);"></p>
<script type="text/javascript">
var distributionBetaXPReply = function(data) {
	$('distribution-beta-p').set('value', data);
}
</script></div>
<h4>柯西分布</h4>
<div>
<p>median: <input id="distribution-Cauchy-m" type="text" value="0"></p>
<p>s:<input id="distribution-Cauchy-s" type="text" value="0"></p>
<p>x:<input id="distribution-Cauchy-x" type="text" value="0"
	title="x" style="wdith: 80%"></p>
<p>p:<input id="distribution-Cauchy-p" type="text" value="0"
	title="p" style="wdith: 80%"></p>
<p><input type="button" value="x->p"
	onclick="distributionService.getCauchyDistribution(
		$('distribution-Cauchy-m').value,
		$('distribution-Cauchy-s').value,
		$('distribution-Cauchy-x').value,
		distributionCauchyXPReply);"></p>
<script type="text/javascript">
var distributionCauchyXPReply = function(data) {
	$('distribution-Cauchy-p').set('value', data);
}
</script>
</div>

<h4>Chi-square分布</h4>
<div>
<p>df:<input id="distribution-chi-df" type="text" value="0"></p>
<p>x:<input id="distribution-chi-x" type="text" value="0"
	title="x" style="wdith: 80%"></p>
<p>p:<input id="distribution-chi-p" type="text" value="0"
	title="p" style="wdith: 80%"></p>
<p><input type="button" value="x->p"
	onclick="distributionService.getChiSquaredDistribution(
		$('distribution-chi-df').value,
		$('distribution-chi-x').value,
		distributionChiXPReply);"></p>
<script type="text/javascript">
var distributionChiXPReply = function(data) {
	$('distribution-chi-p').set('value', data);
}
</script>
</div>

</div>
</body>
</html>
